﻿using DevTeam;

using System;
using System.Data;

namespace ConfExpert.Forms.Depo._7C
{
    public partial class DonmesiBeklenenBM : XPopupForm
    {
        string Modello;
        int CikisPartisiId;
        public DonmesiBeklenenBM(string Modello, int CikisPartisiId)
        {
            InitializeComponent();
            this.Modello = Modello;
            this.CikisPartisiId = CikisPartisiId;
            this.Text = Modello;
        }

        private void DonmesiBeklenenBM_Load(object sender, EventArgs e)
        {
            
            //splitContainerControl1.SizeChanged += MySizeChanged;
            DataSet d = ExecuteDataSet("GetDonusAnaliz2", CikisPartisiId, Modello);
            gridView1.Init(d.Tables[0].Copy());
            gridView2.Init(d.Tables[1].Copy());
            gridView2.FormatAsNumber(1, "Cm");
            gridView1.BestFitColumns();
            gridView2.BestFitColumns();
        }
    }
}
